FROM composer:latest

LABEL maintainer="chenwenlong <chenwenlong@epweike.com>"

# Timezone
#RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
#    && echo 'Asia/Shanghai' > /etc/timezone

# composer china mirror
RUN composer config -g repo.packagist composer https://packagist.phpcomposer.com \
    && mkdir -p /data/src

# install script
COPY ./init.sh /usr/local/bin

RUN chmod 777 /usr/local/bin/init.sh